$OpenBSD: patch-diskfile_cpp,v 1.3 2010/05/09 15:30:53 robert Exp $
--- diskfile.cpp.orig	Mon Apr 12 13:25:37 2004
+++ diskfile.cpp	Sun May  9 17:23:38 2010
@@ -17,6 +17,8 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <sys/param.h>
+
 #include "par2cmdline.h"
 
 #ifdef _MSC_VER
@@ -562,7 +564,7 @@ string DiskFile::GetCanonicalPathname(string filename)
     return filename;
 
   // Get the current directory
-  char curdir[1000];
+  char curdir[MAXPATHLEN];
   if (0 == getcwd(curdir, sizeof(curdir)))
   {
     return filename;
